<template>
  <div class="layout">
      <Sidebar  v-if="this.$route.meta.keepAlive"></Sidebar>
    <router-view></router-view>
  </div>
</template>
<script>
import Sidebar from "../../components/sidebar.vue";
export default {
  name: "Layout",
  components: { Sidebar },
  data() {
    return {};
  },
};
</script>
<style scoped>
.layout {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #f9f9fc;
}
</style>